public class Test {
    public static void main(String[] args) {
        myCircleQueue queue3=new myCircleQueue(8);
        for (int i = 0; i <8; i++) {
            queue3.offer(i+10);
        }
        System.out.println(queue3.poii());
        System.out.println(queue3.poii());
        System.out.println(queue3.poii());
        System.out.println(queue3.poii());
        System.out.println(queue3.poii());
        System.out.println(queue3.poii());
        System.out.println(queue3.poii());
        System.out.println(queue3.poii());

        System.out.println(queue3.Front());

        System.out.println(queue3.Rear());
        System.out.println(queue3.isFull(8));
        System.out.println(queue3.empty());
    }
    public static void main2(String[] args) {
        myQueue2 queue2=new myQueue2();
        queue2.offer(1);
        queue2.offer(2);
        queue2.offer(3);
        queue2.offer(4);
        System.out.println(queue2.poll());
        System.out.println(queue2.poll());
        System.out.println(queue2.poll());
        System.out.println(queue2.poll());
        System.out.println(queue2.poll());
        System.out.println(queue2.peek());
        System.out.println(queue2.empty());
    }
    public static void main1(String[] args) {
        myQueue1 queue1=new myQueue1();
        queue1.offer(1);
        queue1.offer(2);
        queue1.offer(3);
        queue1.offer(4);
        System.out.println(queue1.poll());
        System.out.println(queue1.poll());
        System.out.println(queue1.poll());
        System.out.println(queue1.poll());
        System.out.println(queue1.poll());
        System.out.println(queue1.peek());
        System.out.println(queue1.empty());
    }
}
